/**
 * 
 * 项目名称：ShuHuaService
 * 类名称：commonUtils
 * 类描述：
 * 创建人：Echo
 * 创建时间：2015年3月12日 下午4:40:31
 * 修改人：Echo
 * 修改时间：2015年3月12日 下午4:40:31
 * 修改备注：
 * @version 
 * 
 */
package com.lst.utils;

import java.io.InputStream;
import java.util.Properties;

/**
 * @ClassName: commonUtils
 * @Description: 读取配置文件信息
 * @author Echo
 * @date 2015年3月12日 下午4:40:31
 * 
 */
public class CommonUtils {

	private static String sms_url;

	private static String sms_user;

	private static String sms_pwd;

	private static String img_file_path;

	private static String video_file_path;

	private static String video_file_path_linux;

	private static String excel_file_path;

	private static String img_file_path_linux;

	private static String img_file_path_http;

	private static String temp_file_path;

	private static String temp_file_path_linux;

	//短信账号
	private static String username;
	private static String userpassword;
	private static String enterNo;
	
	//邮箱账号
	private static String sys_mail_service;
	private static String sys_mail_account;
	private static String sys_mail_pwd;
	
	//邮箱模板
	private static String mail_model_order;
	
	//短信模板
	private static String sms_model_captcha;
	private static String sms_model_resetpwd;
	private static String sms_model_refund;
	private static String sms_model_payment;
	private static String sms_model_bindmobile;

	private static String growth_value_order ;
	private static String growth_value_read_wenw;
	private static String growth_value_read_video;
	private static String growth_value_read_pro;
	private static String growth_value_read_gym ;
	private static String growth_value_read_star;
	
	//支付宝信息
	private static String partner;
	private static String key;
	private static String sign_type;
	
	//APP信息
	private static String site_name; //站点名
	
	//微信信息
	private static String appid;//应用ID
	
	private static String mch_id;//商户号
	
	private static String service_ip;

	static {
		try {
			Properties props = new Properties();
			// 加载
			ClassLoader cl = CommonUtils.class.getClassLoader();
			// 读取
			InputStream is = cl.getResourceAsStream("kungfu.properties");

			// 加载信息
			props.load(is);

			sms_url = props.getProperty("sms_url");
			sms_user = props.getProperty("sms_user");
			sms_pwd = props.getProperty("sms_pwd");
			img_file_path = props.getProperty("img_file_path");
			video_file_path = props.getProperty("video_file_path");
			video_file_path_linux = props.getProperty("video_file_path_linux");
			excel_file_path = props.getProperty("excel_file_path");
			img_file_path_linux = props.getProperty("img_file_path_linux");
			img_file_path_http = props.getProperty("img_file_path_http");
			temp_file_path = props.getProperty("temp_file_path");
			temp_file_path_linux = props.getProperty("temp_file_path_linux");

			username = props.getProperty("username");
			userpassword = props.getProperty("userpassword");
			enterNo = props.getProperty("enterNo");
			
			sys_mail_service = props.getProperty("sys_mail_service");
			sys_mail_account = props.getProperty("sys_mail_account");
			sys_mail_pwd = props.getProperty("sys_mail_pwd");
			
			mail_model_order = props.getProperty("mail_model_order");
			
			sms_model_captcha = props.getProperty("sms_model_captcha");
			sms_model_resetpwd = props.getProperty("sms_model_resetpwd");
			sms_model_payment = props.getProperty("sms_model_payment");
			sms_model_refund = props.getProperty("sms_model_refund");
			sms_model_bindmobile = props.getProperty("sms_model_bindmobile");

			growth_value_order = props.getProperty("growth_value_order");
			
			growth_value_read_wenw = props.getProperty("growth_value_read_wenw");
			growth_value_read_video = props.getProperty("growth_value_read_video");
			growth_value_read_pro = props.getProperty("growth_value_read_pro");
			growth_value_read_gym = props.getProperty("growth_value_read_gym");
			growth_value_read_star = props.getProperty("growth_value_read_star");
			
			partner = props.getProperty("partner");
			key = props.getProperty("key");
			sign_type = props.getProperty("sign_type");
			
			site_name = props.getProperty("site_name");
			
			appid = props.getProperty("appid");
			mch_id = props.getProperty("mch_id");
			
			service_ip = props.getProperty("service_ip");
			

		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

	public static String getSite_name() {
		return site_name;
	}

	public static void setSite_name(String site_name) {
		CommonUtils.site_name = site_name;
	}

	public static String getEnterNo() {
		return enterNo;
	}

	public static String getExcel_file_path() {
		return excel_file_path;
	}

	public static String getImg_file_path() {
		return img_file_path;
	}

	public static String getImg_file_path_http() {
		return img_file_path_http;
	}
	public static String getImg_file_path_linux() {
		return img_file_path_linux;
	}


	public static String getSms_pwd() {
		return sms_pwd;
	}

	public static String getSms_url() {
		return sms_url;
	}

	public static String getSms_user() {
		return sms_user;
	}

	public static String getTemp_file_path() {
		return temp_file_path;
	}

	public static String getTemp_file_path_linux() {
		return temp_file_path_linux;
	}

	public static String getUsername() {
		return username;
	}

	public static String getUserpassword() {
		return userpassword;
	}

	public static String getVideo_file_path() {
		return video_file_path;
	}

	public static String getVideo_file_path_linux() {
		return video_file_path_linux;
	}

	public static void setEnterNo(String enterNo) {
		CommonUtils.enterNo = enterNo;
	}

	public static void setExcel_file_path(String excel_file_path) {
		CommonUtils.excel_file_path = excel_file_path;
	}

	public static void setImg_file_path(String img_file_path) {
		CommonUtils.img_file_path = img_file_path;
	}

	public static void setImg_file_path_http(String img_file_path_http) {
		CommonUtils.img_file_path_http = img_file_path_http;
	}

	public static void setImg_file_path_linux(String img_file_path_linux) {
		CommonUtils.img_file_path_linux = img_file_path_linux;
	}

	public static void setSms_pwd(String sms_pwd) {
		CommonUtils.sms_pwd = sms_pwd;
	}

	public static void setSms_url(String sms_url) {
		CommonUtils.sms_url = sms_url;
	}

	public static void setSms_user(String sms_user) {
		CommonUtils.sms_user = sms_user;
	}

	public static void setTemp_file_path(String temp_file_path) {
		CommonUtils.temp_file_path = temp_file_path;
	}

	public static void setTemp_file_path_linux(String temp_file_path_linux) {
		CommonUtils.temp_file_path_linux = temp_file_path_linux;
	}

	public static void setUsername(String username) {
		CommonUtils.username = username;
	}

	public static void setUserpassword(String userpassword) {
		CommonUtils.userpassword = userpassword;
	}

	public static void setVideo_file_path(String video_file_path) {
		CommonUtils.video_file_path = video_file_path;
	}

	public static void setVideo_file_path_linux(String video_file_path_linux) {
		CommonUtils.video_file_path_linux = video_file_path_linux;
	}

	public static String getGrowth_value_order() {
		return growth_value_order;
	}

	public static void setGrowth_value_order(String growth_value_order) {
		CommonUtils.growth_value_order = growth_value_order;
	}

	public static String getGrowth_value_read_wenw() {
		return growth_value_read_wenw;
	}

	public static void setGrowth_value_read_wenw(String growth_value_read_wenw) {
		CommonUtils.growth_value_read_wenw = growth_value_read_wenw;
	}

	public static String getGrowth_value_read_video() {
		return growth_value_read_video;
	}

	public static void setGrowth_value_read_video(String growth_value_read_video) {
		CommonUtils.growth_value_read_video = growth_value_read_video;
	}

	public static String getGrowth_value_read_pro() {
		return growth_value_read_pro;
	}

	public static void setGrowth_value_read_pro(String growth_value_read_pro) {
		CommonUtils.growth_value_read_pro = growth_value_read_pro;
	}

	public static String getGrowth_value_read_gym() {
		return growth_value_read_gym;
	}

	public static void setGrowth_value_read_gym(String growth_value_read_gym) {
		CommonUtils.growth_value_read_gym = growth_value_read_gym;
	}

	public static String getGrowth_value_read_star() {
		return growth_value_read_star;
	}

	public static void setGrowth_value_read_star(String growth_value_read_star) {
		CommonUtils.growth_value_read_star = growth_value_read_star;
	}

	public static String getSys_mail_service() {
		return sys_mail_service;
	}

	public static void setSys_mail_service(String sys_mail_service) {
		CommonUtils.sys_mail_service = sys_mail_service;
	}

	public static String getSys_mail_account() {
		return sys_mail_account;
	}

	public static void setSys_mail_account(String sys_mail_account) {
		CommonUtils.sys_mail_account = sys_mail_account;
	}

	public static String getSys_mail_pwd() {
		return sys_mail_pwd;
	}

	public static void setSys_mail_pwd(String sys_mail_pwd) {
		CommonUtils.sys_mail_pwd = sys_mail_pwd;
	}

	public static String getMail_model_order() {
		return mail_model_order;
	}

	public static void setMail_model_order(String mail_model_order) {
		CommonUtils.mail_model_order = mail_model_order;
	}

	public static String getSms_model_captcha() {
		return sms_model_captcha;
	}

	public static void setSms_model_captcha(String sms_model_captcha) {
		CommonUtils.sms_model_captcha = sms_model_captcha;
	}

	public static String getSms_model_resetpwd() {
		return sms_model_resetpwd;
	}

	public static void setSms_model_resetpwd(String sms_model_resetpwd) {
		CommonUtils.sms_model_resetpwd = sms_model_resetpwd;
	}

	public static String getSms_model_refund() {
		return sms_model_refund;
	}

	public static void setSms_model_refund(String sms_model_refund) {
		CommonUtils.sms_model_refund = sms_model_refund;
	}

	public static String getSms_model_payment() {
		return sms_model_payment;
	}

	public static void setSms_model_payment(String sms_model_payment) {
		CommonUtils.sms_model_payment = sms_model_payment;
	}

	public static String getPartner() {
		return partner;
	}

	public static void setPartner(String partner) {
		CommonUtils.partner = partner;
	}

	public static String getKey() {
		return key;
	}

	public static void setKey(String key) {
		CommonUtils.key = key;
	}

	public static String getSign_type() {
		return sign_type;
	}

	public static void setSign_type(String sign_type) {
		CommonUtils.sign_type = sign_type;
	}

	/**
	 * @return the appid
	 */
	public static String getAppid() {
		return appid;
	}

	/**
	 * @param appid the appid to set
	 */
	public static void setAppid(String appid) {
		CommonUtils.appid = appid;
	}

	/**
	 * @return the mch_id
	 */
	public static String getMch_id() {
		return mch_id;
	}

	/**
	 * @param mch_id the mch_id to set
	 */
	public static void setMch_id(String mch_id) {
		CommonUtils.mch_id = mch_id;
	}

	/**
	 * @return the service_ip
	 */
	public static String getService_ip() {
		return service_ip;
	}

	/**
	 * @param service_ip the service_ip to set
	 */
	public static void setService_ip(String service_ip) {
		CommonUtils.service_ip = service_ip;
	}

	public static String getSms_model_bindmobile() {
		return sms_model_bindmobile;
	}

	public static void setSms_model_bindmobile(String sms_model_bindmobile) {
		CommonUtils.sms_model_bindmobile = sms_model_bindmobile;
	}
	
}
